<?php get_header(); ?>
<div id="main_body">
    <div class="container">

        <div class="col_left">
        <div id="middle" />
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

                <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

                    <h2><?php the_title(); ?></h2>
                    <div class="breadcrumbs">
                        <?php
                        if (function_exists('bcn_display')) {
                            bcn_display();
                        }
                        ?>
                    </div>
                    <?php //include (TEMPLATEPATH . '/inc/meta.php' );  ?>

                    <div class="entry">

                        <?php the_content(); ?>

                        <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>

                        <?php the_tags('Tags: ', ', ', ''); ?>

                    </div>
                    <div class="related_posts">
                        <h3>អត្ថបទ​ផ្សេងៗទៀត</h3>
                        <?php
                            $cat = get_the_category();
                            relatePostByCategory($cat[0]->cat_ID, get_the_ID());
                        ?>
                    </div>
                    <?php
                    /*if (function_exists('wp_related_posts')):
                        echo '<div class="related_posts">';
                            wp_related_posts();
                        echo '</div>';
                    endif;*/
                    ?>
                    <?php
                    include_once('meta-social.php');
                    ?> 
                    
                    <?php //edit_post_link('Edit this entry','','.'); ?>

                </div>

                <?php //comments_template(); ?>

            <?php endwhile;
        endif; ?>


    </div> <!-- middle -->
    <?php get_sidebar(); ?>
        </div>
        <div class="col_right">
            <?php get_sidebar('right'); ?>
        </div>
    
</div>
<div class="clearfix"></div>
</div><!-- #main -->
<?php get_footer(); ?>